package com.icode.jaxws.client.function.bigdecimal;

import java.math.BigDecimal;

/**
 * Created with IntelliJ IDEA.
 * User: ZhongGang
 * Date: 14-6-28
 * Time: 下午5:40
 */
public class BigDecimalFunctionConsumer {

    public static void main(String[] args) {
        BigDecimalFunctionService functionService = new BigDecimalFunctionService();
        Function function = functionService.getBigDecimalFunctionPort();
        BigDecimal result = (BigDecimal) function.add(BigDecimal.valueOf(1.2), BigDecimal.valueOf(2.3));
        System.out.println(result);
    }
}
